import Vue from 'vue'
import VueRouter from 'vue-router'
import Ad_home from "../components/Admin/Ad_home";
import Welcome from "../components/Admin/Welcome";
import M_user from "../components/Admin/Manage/M_user";
import M_teacher from "../components/Admin/Manage/M_teacher";
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect:'/Ad_home'
  },
  {
    path:'/Ad_home',
    name:'Ad_home',
    component:Ad_home,
    redirect: '/welcome',
    children: [{
      path: '/welcome',
      component: Welcome,
    },
      {
        path:'/M_user',
        name:'M_user',
        component: M_user
      },
      {
        path:'/M_teacher',
        name:'M_teacher',
        component: M_teacher
      }]
  },
]

const router = new VueRouter({
  routes
})

export default router
